package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 中介对象 agent
 * 
 * @author ruoyi
 * @date 2021-03-14
 */
public class Agent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 中介姓名 */
    @Excel(name = "中介姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String telephone;

    /** 座机 */
    @Excel(name = "座机")
    private String phone;

    /** QQ */
    @Excel(name = "QQ")
    private String qq;

    /** 微信 */
    @Excel(name = "微信")
    private String wx;

    /** 所属省份 */
    @Excel(name = "所属省份", readConverterExp = "Beijing=北京,Tianjin=天津,Shanghai=上海,Chongqing=重庆,Hebei=河北,Henan=河南,Heilongjiang=黑龙江,Jilin=吉林,Liaoning=辽宁,Shandong=山东,Shanxi=山西,Shaanxi=陕西,Jiangsu=江苏,Jiangxi=江西,Anhui=安徽,Fujian=福建,Gansu=甘肃,Guangdong=广东,Guangxi=广西,Guizhou=贵州,Hainan=海南,Hubei=湖北,Hunan=湖南,Neimenggu=内蒙古,Ningxia=宁夏,Qinghai=青海,Sichuan=四川,XiZang=西藏,Xinjiang=新疆,Yunnan=云南,Zhejiang=浙江,Xianggang=香港,Aomen=澳门,Taiwan=台湾")
    private String province;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 中介级别 */
    @Excel(name = "中介级别", readConverterExp = "A1=一级客户,A2=二级客户,A3=三级客户,A4=四级客户,A5=五级客户")
    private String agentLevel;

    /** 中介类别 */
    @Excel(name = "中介类别", readConverterExp = "T1=普通客户,T2=老客户,T3=重点客户,T4=意向客户,T5=其他")
    private String agentType;

    /** 是否公客 */
    @Excel(name = "是否公客", readConverterExp = "0=否,1=是")
    private String guest;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    private Long userId;
    private Long deptId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String userName;

    private String record;

    /** 跟进时间 */
    private Date relationTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setQq(String qq) 
    {
        this.qq = qq;
    }

    public String getQq() 
    {
        return qq;
    }
    public void setWx(String wx) 
    {
        this.wx = wx;
    }

    public String getWx() 
    {
        return wx;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setAgentLevel(String agentLevel)
    {
        this.agentLevel = agentLevel;
    }

    public String getAgentLevel()
    {
        return agentLevel;
    }
    public void setAgentType(String agentType)
    {
        this.agentType = agentType;
    }

    public void setGuest(String guest)
    {
        this.guest = guest;
    }

    public String getGuest()
    {
        return guest;
    }

    public String getAgentType()
    {
        return agentType;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public String getRecord()
    {
        return record;
    }

    public void setRecord(String record)
    {
        this.record = record;
    }
    public Date getRelationTime()
    {
        return relationTime;
    }

    public void setRelationTime(Date relationTime)
    {
        this.relationTime = relationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("telephone", getTelephone())
            .append("phone", getPhone())
            .append("qq", getQq())
            .append("wx", getWx())
            .append("province", getProvince())
            .append("email", getEmail())
            .append("agentLevel", getAgentLevel())
            .append("agentType", getAgentType())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("deptId", getDeptId())
            .append("relationTime", getRelationTime())
            .toString();
    }
}
